package com.alibaba.citrus.ots.price.ability.functions.entity.activity;

/**
 * @author: qiaojiange
 * @create: 2021/11/20
 * @Description 自定义组合货品存储
 */
public class CustumerCombinationItemThreadLocal {
    private static ThreadLocal<CombinationItemStore> threadLocal = new ThreadLocal<>();

    /**
     * 获取 CombinationItemStore
     *
     * @return CombinationItemStore
     */
    public static CombinationItemStore get() {
        return threadLocal.get();
    }

    /**
     * 清空 CombinationItemStore
     */
    public static void clear() {
        threadLocal.remove();
    }

    public static void set(CombinationItemStore store){
        threadLocal.set(store);
    }


}
